<?php
/****
* user及其对应timeline
*/
class UserViewModel extends ViewModel{
    protected $map= array();
    public $viewFields = array( 
        'Account'=>array('_type'=>'LEFT',
                    '*',
        ),
        'AccountUser'=>array('_type'=>'LEFT',
                    '_on'=>'Account.uid=AccountUser.uid',
                    'cardid'=>'cardid',
        ),
    );
    public function _initialize(){
        $this->order('Account.`uid` ASC');
    }
}
?>